package com.huayun.plugin.materialLibrary.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "materialLibrary")
public class MaterialLibrary {
    @Id
    private String _id;
    private String number;
    private String name;
    private String level;
    private String area;
    private String density;
    private String standard;
    private String unit;
    private Number layer;

    public String getId() {
        return _id;
    }

    public void setId(String id) {
        this._id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getDensity() {
        return density;
    }

    public void setDensity(String density) {
        this.density = density;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Number getLayer() {
        return layer;
    }

    public void setLayer(Number layer) {
        this.layer = layer;
    }

    //用来方便打印和查看数据
    @Override
    public String toString() {
        return "MaterialLibrary{" +
                "_id='" + _id + '\'' +
                ", number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", level='" + level + '\'' +
                ", area='" + area + '\'' +
                ", density='" + density + '\'' +
                ", standard='" + standard + '\'' +
                ", unit='" + unit + '\'' +
                ", layer=" + layer +
                '}';
    }
}
